﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IIControls.IAControl
{
    public class Valve
    {
        /// <summary>
        /// ID
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 控制器ID
        /// </summary>
        public int ControlTypeID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        /// 
        public string Name { get; set; }

        /// <summary>
        /// GPRS编号
        /// </summary>
        public string GPRSNumber { get; set; }

        /// <summary>
        /// 协调器编号
        /// </summary>
        public string CoorNumber { get; set; }

        /// <summary>
        /// 控制器编号
        /// </summary>
        public string Number { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 角度
        /// </summary>
        private double angle = 0;
        /// <summary>
        /// 角度
        /// </summary>
        public double Angle
        {

            get { return angle; }
            set { angle = value; }
        }
        private double height = 0;
        /// <summary>
        /// 高度
        /// </summary>
        public double Height
        {
            get { return height; }
            set { height = value; }
        }
        private double width = 0;
        /// <summary>
        /// 宽度
        /// </summary>
        public double Width
        {
            get { return width; }
            set { width = value; }
        }
        private double left = 0;
        /// <summary>
        /// 距离左边的距离
        /// </summary>
        public double Left
        {
            get { return left; }
            set { left = value; }
        }
        private double top = 0;
        /// <summary>
        /// 距离顶部的距离
        /// </summary>
        public double Top
        {
            get { return top; }
            set { top = value; }
        }
        private int zindex = 0;
        /// <summary>
        /// Z次序
        /// </summary>
        public int ZIndex
        {
            get { return zindex; }
            set { zindex = value; }
        }
        /// <summary>
        /// 程序集
        /// </summary>
        private string assembly = null;
        public string Assembly
        {
            get
            {
                if (assembly == null)
                {
                    assembly = "IIControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null";
                }
                return assembly;
            }
            set { assembly = value; }
        }
        private string namespace1 = null;
        /// <summary>
        /// 命名空间
        /// </summary>
        public string NameSpace
        {
            get
            {
                if (namespace1 == null)
                {
                    namespace1 = "IIControls.IAControl";
                }
                return namespace1;
            }
            set { namespace1 = value; }
        }
        private string classname = null;
        /// <summary>
        /// 类名
        /// </summary>
        public string ClassName
        {
            get
            {
                if (classname == null)
                {
                    classname = "valve";
                }
                return classname;
            }
            set { classname = value; }
        }
        private int flag = 0;
        //操作标志：1【增加】 2【更新】 3【删除】
        public int Flag
        {
            get
            {
                if (flag == 0)
                {
                    flag = 2;
                }
                return flag;
            }
            set { flag = value; }
        }
    }
}
